package com.qk.common.util;

public class CurrentUserContextHolders {

    private static final ThreadLocal<Integer> USER_CONTEXT  = new ThreadLocal<>();
    public static void set(Integer userId){
        USER_CONTEXT.set(userId);
    }
    public static Integer get(){
        return USER_CONTEXT.get();
    }
    public static void remove(){
        USER_CONTEXT.remove();
    }
}
